package com.itheima.apidemo;

import com.itheima.domain.Student;

/*
Object  toString
 */
public class Demo003 {

    public static void main(String[] args) {
        Student wu = new Student("吴亦凡", 31);
        System.out.println(wu);

    /*    System.out.println(wu.getClass().getName());
        System.out.println(wu.hashCode());*/
        Student wu2 = new Student("吴亦凡", 31);
        System.out.println(wu.equals(wu2));

    }
}
